package com.example.demo.test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class demo4 {

    public static void main(String[] args) {
        int[] a= new int[]{1,23,2};
        Arrays.sort(a);
        // List<int[]> ints = Arrays.asList(a);
        System.out.println(a);
        for (int a1: a) {
            System.out.println(a1);
        }
    }
}
